package com.gjs.common.pojo.dto.upload;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Map;

@Data
@AllArgsConstructor
@ApiModel("上传规则对象")
public class UploadRuleDTO {

    @ApiModelProperty("规则类型名称，如：图片/音频/视频")
    private String name;

    @ApiModelProperty("允许上传的文件后缀与对应的content-type，样例：'jpeg'=>'image/jpeg'")
    private Map<String,String> ext;

    @ApiModelProperty("允许上传的大小，单位为Byte")
    private Integer limitSize;
}
